package com.azdebugit.enu.test.it2;

import com.azdebugit.enu.test.it1.OrderStatusEnum;
import org.junit.Test;

public enum SeasonEnum implements ISeasonBehaviour {
    SPRING(1, "春天"), SUMMER(2, "夏天"), FALL(3, "秋天"), WINTER(4, "冬天"),
    ;

    private int index;
    private String name;

    SeasonEnum(int index, String name) {
        this.index = index;
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }

    //接口方法
    @Override
    public void showSeasonBeauty() {
        System.out.println("welcome to " + this.name);
    }

    //接口方法
    @Override
    public  String getSeasonName() {
        return this.name;
    }

    @Test
    public void getValue(){
        System.out.println(getSeasonName());
    }

}
